//
//  TopData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/03
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "TopData.h"
#import "TopLogos.h"

@implementation TopData

+ (NSDictionary *)objectClassInArray{
    return @{@"logos" : [TopLogos class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"logos"]) {
        NSMutableArray<TopLogos *>  *topLogosArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            TopLogos *topLogos = [TopLogos modelWithDic:dic];
            [topLogosArray addObject:topLogos];
        }
        _logos = topLogosArray;
    }
}

@end
